package org.jeecg.modules.jxc.sale.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.MapKey;
import org.jeecg.modules.jxc.sale.entity.SaleList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.jxc.sale.vo.CustomerList;

/**
 * @Description: tb_sale_list
 * @Author: jeecg-boot
 * @Date:   2021-10-26
 * @Version: V1.0
 */
public interface SaleListMapper extends BaseMapper<SaleList> {

	boolean deleteByMainId(@Param("mainId") String mainId);

	List<SaleList> selectByMainId(@Param("mainId") String mainId);

	List<CustomerList> selectByCustomerId();

    IPage<Map<String, Object>> selectPageList(Page<Map<String, Object>> page, SaleList saleList);
}
